#include <buola/gui.h>

#include <buola/widgets/ccheckwidget.h>
#include <buola/algorithm/comparison.h>

namespace buola { namespace gui {

void CCheckWidget::GetPropertyNames(std::vector<std::string> &pNames)
{
    pNames.push_back("value");

    CWidget::GetPropertyNames(pNames);
}

void CCheckWidget::SetProperty(const std::string &p,const UAny &v)
{
    if(iequals(p,"value"))
    {
        Check(v.Get<bool>());
    }
    else
    {
        CWidget::SetProperty(p,v);
    }
}

/*namespace gui*/ } /*namespace buola*/ }
